From 0dd459c430086a9322f926b8a03ee5675aa21154 Mon Sep 17 00:00:00 2001 From: "awilliam@xenbuild.aw" Date: Tue, 31 Oct 2006 22:25:17 -0700 Subject: [PATCH] [IA64] compilation fix when crash_debug=y. Signed-off-by: Isaku Yamahata --- xen/include/asm-ia64/linux-xen/asm/atomic.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xen/include/asm-ia64/linux-xen/asm/atomic.h b/xen/include/asm-ia64/linux-xen/asm/atomic.h index 874a6f890e..f306ecd5b9 100644 --- a/xen/include/asm-ia64/linux-xen/asm/atomic.h +++ b/xen/include/asm-ia64/linux-xen/asm/atomic.h @@ -23,8 +23,13 @@ typedef struct { volatile __s32 counter; } atomic_t; typedef struct { volatile __s64 counter; } atomic64_t; +#ifndef XEN #define ATOMIC_INIT(i) ((atomic_t) { (i) }) #define ATOMIC64_INIT(i) ((atomic64_t) { (i) }) +#else +#define ATOMIC_INIT(i) { (i) } +#define ATOMIC64_INIT(i) { (i) } +#endif #define atomic_read(v) ((v)->counter) #define atomic64_read(v) ((v)->counter) -- 2.30.2